package com.loie.datacenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.loie.datacenter.model.bo.ParamBO;
import com.loie.datacenter.model.bo.RoleListBO;
import com.loie.datacenter.model.bo.RoleMenuBO;

import java.util.List;

/**
 * @author zhl
 * @create 2021/9/7 13:49
 */
public interface RoleListMapper extends BaseMapper<RoleListBO> {

    List<RoleListBO> getRoleList(ParamBO bo);


    List<String> getMenuListByRole(String roleId);

    long isExist(RoleListBO bo);


    void deleteRoleMenuByRoleId(String roleId);

    void insertRoleMenu(RoleMenuBO bo);

    int getUserRoleCount(String roleId);
}
